import request from "@/utils/request";

// 查询生产班组信息列表
export function listTeam(query) {
	return request({
		url: "/operation/web/team/list",
		method: "get",
		params: query,
	});
}

// 查询生产班组信息详细
export function getTeam(teamId) {
	return request({
		url: "/operation/web/team/" + teamId,
		method: "get",
	});
}

// 新增生产班组信息
export function addTeam(data) {
	return request({
		url: "/operation/web/team",
		method: "post",
		data: data,
	});
}

// 修改生产班组信息
export function updateTeam(data) {
	return request({
		url: "/operation/web/team",
		method: "put",
		data: data,
	});
}

// 删除生产班组信息
export function delTeam(teamId) {
	return request({
		url: "/operation/web/team/" + teamId,
		method: "delete",
	});
}

// 获取用户下拉列表
export function getUserList() {
	return request({
		url: "/operation/web/schedules/userList",
		method: "get",
	});
}
